<%= render :partial => 'messages' %>

<% unless @user.nil? %>
<%= error_messages_for 'user' %>
<% end %>